package com.z.ssmdemo.queryEntity;

import com.z.platform.controller.persistence.orm.annotation.*;
import com.z.platform.controller.persistence.orm.metadataModel.BaseQuery;
import com.z.platform.controller.persistence.orm.metadataModel.Entity;
import com.z.platform.controller.persistence.orm.metadataModel.Where;
import com.z.ssmdemo.entity.UserEntity;

import java.time.LocalDate;

/**
 * @author 21051
 */
@QBindEntity(entityClass = UserEntity.class)
public class UserEntityQuery implements BaseQuery {
    @QBindAttrField(fieldName = "id",where = Where.equal)
    private String id;

    @QBindAttrField(fieldName = "pazz_word",where = Where.equal)
    private String passWord;

    @QBindAttrField(fieldName = "nick_name",where = Where.equal)
    private String nickName;

    @QBindAttrField(fieldName = "Name",where = Where.equal)
    private String name;

    @QBindAttrField(fieldName = "Sex",where = Where.equal)
    private String sex;

    @QBindAttrField(fieldName = "Reg_date",where = Where.equal)
    private LocalDate regDate;

    @QBindAttrField(fieldName = "Brith_date",where = Where.equal)
    private LocalDate birthDate;

    public UserEntityQuery() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public LocalDate getRegDate() {
        return regDate;
    }

    public void setRegDate(LocalDate regDate) {
        this.regDate = regDate;
    }

    public LocalDate getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(LocalDate birthDate) {
        this.birthDate = birthDate;
    }
}
